import Vue from 'vue'
import App from './App.vue'
import router from "@/routes";
import store from "@/store";
import TypeNav from "@/components/TypeNav";
import Swiper from "@/components/Swiper";
import Pagination from "@/components/Pagination";
import "./mock"
import { Button,Dialog,Message} from 'element-ui';
Vue.use(Button)
Vue.use(Dialog)
Vue.prototype.$message = Message
Vue.config.productionTip = false
Vue.component("TypeNav",TypeNav)
Vue.component("Swiper",Swiper)
Vue.component("Pagination",Pagination)
new Vue({
  render: h => h(App),
    router,
    store,
    Pagination,
    beforeCreate() {
      Vue.prototype.$bus = this
    }
}).$mount('#app')
